package tech.xs.auth.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.util.MultiValueMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;
import tech.xs.common.framework.domain.model.ApiResult;

@FeignClient(name = "${framework.service.auth.name}", contextId = "AuthPathApi")
public interface AuthPathApi {


    @GetMapping("/path/isPathAuthBasic")
    ApiResult<Boolean> isPathAuthBasic(@RequestParam String path, @RequestParam String method, @RequestHeader MultiValueMap<String, String> headers);


}
